package com.cscec.omega.utils;

import com.alibaba.fastjson.JSONObject;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class SchemaUtil {

    private static Map<String, String> schemaMap = new ConcurrentHashMap<>();

    public static void addSchema(String name, String jsonSchema){
        schemaMap.put(name, jsonSchema);
    }

    public static String getSchema(String name){
        return schemaMap.get(name);
    }
}
